package com.ymatou.api.marketingseller.service;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import net.sf.json.JSONObject;

import org.apache.http.client.ClientProtocolException;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class CreateSellerPromotionCall extends YmatouAutoTestCall{

	private static String opurl ="/api/Promotion/CreateSellerPromotion";
	
	public CreateSellerPromotionCall() {
		super(EnvSetup.getSystemUrl("marketingseller_api"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	
	public static void main(String[] args) throws ClientProtocolException, IOException {
	
		Map<String,Object> map = new HashMap<String,Object>();
		
//		map.put("SellerId",3384);
//		map.put("PromotionInfo->PromotionType",3);
//		map.put("PromotionInfo->PromotionValues[0]->QtyCondition",3);
		
		
//		JSONObject retBea = new CreateSellerPromotionCall().callAndGetReturnData();
	}

}
